package com.item.yxlottery.yxlottery.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by leo on 2017/2/25.
 */

public class OrderBean implements Parcelable {
    private String orderTotalPrice;//订单金额
    private String orderState;//订单状态
    private String createTimeString;//下单时间
    private String lotteryPeriod;//期数
    private String goodsName;//彩种名称
    private String lotteryNumber;//投注号码字符串
    private String lotteryTimes;//注数

    public OrderBean(){

    }

    public OrderBean(String orderTotalPrice,String orderState,String createTimeString,String lotteryPeriod,String goodsName,
                     String lotteryNumber,String lotteryTimes){
        this.orderTotalPrice = orderTotalPrice;
        this.orderState = orderState;
        this.createTimeString = createTimeString;
        this.lotteryPeriod = lotteryPeriod;
        this.goodsName = goodsName;
        this.lotteryNumber = lotteryNumber;
        this.lotteryTimes = lotteryTimes;
    }


    protected OrderBean(Parcel in) {
        orderTotalPrice = in.readString();
        orderState = in.readString();
        createTimeString = in.readString();
        lotteryPeriod = in.readString();
        goodsName = in.readString();
        lotteryNumber = in.readString();
        lotteryTimes = in.readString();
    }

    public static final Creator<OrderBean> CREATOR = new Creator<OrderBean>() {
        @Override
        public OrderBean createFromParcel(Parcel in) {
            return new OrderBean(in);
        }

        @Override
        public OrderBean[] newArray(int size) {
            return new OrderBean[size];
        }
    };

    public String getOrderState() {
        return orderState;
    }

    public void setOrderState(String orderState) {
        this.orderState = orderState;
    }

    public String getLotteryTimes() {
        return lotteryTimes;
    }

    public void setLotteryTimes(String lotteryTimes) {
        this.lotteryTimes = lotteryTimes;
    }

    public String getOrderTotalPrice() {
        return orderTotalPrice;
    }

    public void setOrderTotalPrice(String orderTotalPrice) {
        this.orderTotalPrice = orderTotalPrice;
    }

    public String getCreateTimeString() {
        return createTimeString;
    }

    public void setCreateTimeString(String createTimeString) {
        this.createTimeString = createTimeString;
    }

    public String getLotteryPeriod() {
        return lotteryPeriod;
    }

    public void setLotteryPeriod(String lotteryPeriod) {
        this.lotteryPeriod = lotteryPeriod;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getLotteryNumber() {
        return lotteryNumber;
    }

    public void setLotteryNumber(String lotteryNumber) {
        this.lotteryNumber = lotteryNumber;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public String toString() {
        return "OrderBean{" +
                "orderTotalPrice='" + orderTotalPrice + '\'' +
                ", orderState='" + orderState + '\'' +
                ", createTimeString='" + createTimeString + '\'' +
                ", lotteryPeriod='" + lotteryPeriod + '\'' +
                ", goodsName='" + goodsName + '\'' +
                ", lotteryNumber='" + lotteryNumber + '\'' +
                ", lotteryTimes='" + lotteryTimes + '\'' +
                '}';
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(orderTotalPrice);
        dest.writeString(orderState);
        dest.writeString(createTimeString);
        dest.writeString(lotteryPeriod);
        dest.writeString(goodsName);
        dest.writeString(lotteryNumber);
        dest.writeString(lotteryTimes);
    }
}
